package cn.jwm.permission.mapper;

import cn.jwm.base.mapper.BaseMapper;
import cn.jwm.permission.domain.Role;
import cn.jwm.permission.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {


    void deletePermissionByRoleId(Long roleId);

    void batchSaveRolePermission(@Param("roleId") Long roleId, @Param("permissionSns") List<String> permissionSns);

    List<String> getRolePermissionSns(Long roleId);
}
